let productid = getQueryString('productid')
let ul = document.querySelector("ul")
console.log(productid)


let xhr1 = new XMLHttpRequest()
xhr1.open("get",`http://chst.vip:1234/api/getdiscountproduct?productid=${productid}`)
xhr1.onload = function(){
    if(xhr1.status === 200){
        let res1 = JSON.parse(xhr1.responseText)
        console.log(res1.result)
        let resre = res1.result
        console.log(resre)
        lis = ''

        ul.innerHTML = `
        <li>
                <div class="bt">
                    <h4>${resre[0].productName}</h4>
                </div>


                <div class="ly">
                    <div>
                        <span>${resre[0].productFrom}${resre[0].productTime}</span>
                        <span>${resre[0].productTips}</span>
                    </div>
                    <div class="lydz">${resre[0].productPrice}</div>
                </div>


                <div class="ms">${resre[0].productInfo}</div>

                <div class="tp">
                ${resre[0].productImg}
                </div>
            </li>
        `

    }
}
xhr1.send(null)